package com.example.demo3.service.Imp;

import com.example.demo3.entity.User;
import com.example.demo3.mapper.UserMapper;
import com.example.demo3.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImp implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User findByNameAndPassword(String userName, String userPassword) {
        return userMapper.findByNameAndPassword(userName,userPassword);
    }
}
